// Licensed to Cloudera, Inc. under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

@use 'variables' as vars;

.hue-upload-queue-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  right: 16px;
  width: 520px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.antd.cuix {
  .hue-upload-queue-container__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    color: vars.$fluidx-gray-900;
    background-color: vars.$fluidx-gray-050;
    font-size: 16px;

    &__button-group {
      display: flex;
      gap: vars.$cdl-spacing-xxs;

      button {
        color: vars.$fluidx-black;
      }
    }
  }

  .hue-upload-queue-container__actions {
    background-color: vars.$fluidx-white;
    text-align: right;
    padding: vars.$cdl-spacing-xxs vars.$cdl-spacing-l;
    border-bottom: 1px solid vars.$fluidx-gray-300;
  }

  .hue-upload-queue-container__list {
    display: flex;
    flex-direction: column;
    min-height: 85px;
    max-height: 40vh;
    background-color: vars.$fluidx-white;
    overflow: auto;
    padding: vars.$cdl-spacing-s;
    gap: 16px;
  }
}

.hue-conflict-detect-modal {
  height: 50vh;

  &__body {
    display: flex;
    flex-direction: column;
    gap: vars.$cdl-spacing-xxs;
  }
}

.conflict-files__container {
  margin-top: vars.$cdl-spacing-xxs;
  overflow-y: auto;
  max-height: calc(50vh - 100px);
  border-top: 1px solid vars.$fluidx-gray-400;
  padding-top: vars.$cdl-spacing-xxs;
}

.conflict-files__item {
  display: flex;
  align-items: center;
  gap: vars.$cdl-spacing-xxs;
}

.conflict-files__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;

  svg {
    width: 100%;
    height: 100%;
  }
}

.conflict-files__name {
  word-break: break-word;
  max-width: calc(100% - 28px);
}
